package.path = package.path .. ";E:\\IdeaProjects\\jzjh3\\jzjh3\\scripts\\h-lua\\?.lua"
package.path = package.path .. ";E:\\IdeaProjects\\jzjh3\\jzjh3\\scripts\\?.lua"

require "h-lua"

-- 常量
require "const.point"
require "const.map"
require "const.boss"

require "lib.order"
require "lib.hero"

require "logic.god"
require "logic.death"
require "logic.spawn"
require "logic.chat"
require "logic.item"
require "logic.skill"
require "logic.damage"
require "logic.rect"
require "logic.init"
require "logic.tick"
require "logic.mode"
require "logic.hint"
require "logic.key"


print_mb('hello world')

-- 镜头模式
hcamera.setModel("normal")

-- 设定玩家
hplayer.qty_max = 1 -- 最大玩家数
hplayer.convert_ratio = 1000000 -- 换算比率，100金 -> 1木

-- 设定敌军
henemy.setName("邪恶势力")
-- henemy.setShareSight(true)
henemy.setColor(cj.ConvertPlayerColor(12)) -- black
henemy.setPlayer(hplayer.players[9])

-- 调试去除迷雾
if (HLUA_DEBUG == true) then
    henv.setFogStatus(false, false)
else
    henv.setFogStatus(true, true)
end

-- game start(这里需要用时间事件延时N秒，不然很多动作会在初始化失效)
require "start"

